package com.xbongbong.saas.model.impl;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.saas.domain.dao.BatchSeqOperationDao;
import com.xbongbong.saas.domain.entity.BatchSeqOperationEntity;
import com.xbongbong.saas.model.BatchSeqOperationModel;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author jiyonghui
 * @className BatchSeqOperationModelImpl
 * @description
 * @date 2020/5/19   14:29
 */

@Service("BatchSeqOperationModel")
public class BatchSeqOperationModelImpl implements BatchSeqOperationModel {

    @Resource
    private BatchSeqOperationDao batchSeqDao;

    @Override
    public Integer insert(BatchSeqOperationEntity entity) throws XbbException {
        return batchSeqDao.insert(entity);
    }

    @Override
    public Integer update(BatchSeqOperationEntity entity) throws XbbException {
        return null;
    }

    @Override
    public List<BatchSeqOperationEntity> findEntitys(Map<String, Object> param) {
        return batchSeqDao.findEntitys(param);
    }

    @Override
    public Integer getEntitysCount(Map<String, Object> param) {
        return null;
    }

    @Override
    public List findEntitysWithoutSub(Map<String, Object> param) {
        return null;
    }

    @Override
    public List<BatchSeqOperationEntity> findMaxIdEntitys(Map<String, Object> param) {
        return batchSeqDao.findMaxIdEntitys(param);
    }
}
